package physical.equation.material;
import java.io.*;


public class Rubber extends base.Particle
{
	private static String TYPE = "Rubber";
	private static double MASS = 250;
	private static double STRESSLAMBDA = 5e8;
	private static double STRESSMU = 5e8;
	private static double[] GRAVITY = new double[] {0, -10};
	
	public Rubber()
	{
		type = TYPE;
		mass = MASS;
		stressLambda = STRESSLAMBDA;
		stressMu = STRESSMU;
		gravity = GRAVITY;
		energy = 0;
	}
	
	public void refreshProperties()
	{
		temperature = getTemperature(density, energy);
		pressure = getPressure(density, energy);
		soundSpeed = getSoundSpeed(density, energy);
		bulkKappa = 0;
		viscosityMu = 1;
		heatKappa = 0;
	}
	
	private static double getTemperature(double _density, double _energy)
	{
		return 0;
	}
	private static double getPressure(double _density, double _energy)
	{
		//double p = 1.0 * STRESSMU * (_density / 1000 - 1);
		double p = 0;
		return p;
		//return Math.max(0, p);
	}
	private static double getSoundSpeed(double _density, double _energy)
	{
		return 10;
	}
}